import Remote from './Remote'
import urls from './Urls';

export default class RemoteClient {

  constructor() {
    this.remote = new Remote();
  }

  getJsonObject() {
    const url = urls.getJsonObjectURL();
    return this.remote.getDataFromRemote(url);
  }

  getJsonArray() {
    const url = urls.getJsonArrayURL();
    return this.remote.getDataFromRemote(url);
  }
}
